<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试机申请列表</title>
<script type="text/javascript" src="/oa/Public/js/jquery.js"></script>
<script type="text/javascript" src="/oa/Public/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/oa/Public/css/global.css" />
<link rel="stylesheet" type="text/css" href="/oa/Public/css/form.css" />
</head>
<body>
<div class="search">
<form action="screening_wait" method="post" name="form1" onsubmit="return CheckForm();">
	<b>客户名称查询：</b>
	<input type="text" name="content" value="<?php echo ($content); ?>"><input type="submit" value="查询" class="submit" />
</form>
</div>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th width="50ox">序号</th>
            <th width="25%">设备类型</th>
            <th width="25%">客户名称</th>
            <th width="10%">申请人</th>
            <th width="100px">申请时间</th>
            <th width="100px">测试地点</th>
            <th width="100px">归还时间</th>
            <th width="100px">操作</th>
        </tr>
    </thead>
 
    <tbody>
      <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td align="center"><?php echo ($i); ?></td>
            <td><?php echo ((isset($vo["dev_type"]) && ($vo["dev_type"] !== ""))?($vo["dev_type"]):"---"); ?></td>
            <td><?php echo ((isset($vo["client_name"]) && ($vo["client_name"] !== ""))?($vo["client_name"]):"---"); ?></td>
            <td><?php echo ((isset($vo["apply_username"]) && ($vo["apply_username"] !== ""))?($vo["apply_username"]):"---"); ?></td>
            <td><?php echo ((isset($vo["apply_date"]) && ($vo["apply_date"] !== ""))?($vo["apply_date"]):"---"); ?></td>
            <td><?php echo ((isset($vo["place"]) && ($vo["place"] !== ""))?($vo["place"]):"---"); ?></td>
            <td><?php echo ((isset($vo["back_time"]) && ($vo["back_time"] !== ""))?($vo["back_time"]):"---"); ?></td>
            <td><?php if($vo['status'] == 2): ?><a href="javascript:;" onclick="edit(<?php echo ($vo["id"]); ?>)">筛选</a><?php endif; ?></td>
        </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
    </tbody>
</table>
</div>
<div class="page"><?php echo ($page); ?></div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
});   
function edit(id){
	window.location="/oa/index.php/Device/screening_edit?id="+id;
}
function CheckForm(){
	var content = $("input[name='content']").val();
	if( content != "" && content.indexOf(" ") >= 0){
		$("input[name='content']").focus();
		$("input[name='content']").select();
		alert("客户名称不能含有空格！");return false;
	}
}
</script>